<!DOCTYPE html>
<html>
    <head>
        <#include "/${system}/component/html-head.ftl" />
    </head>
    <body>
        <#include "/${system}/component/head.ftl" />
        <div class="admin">
            <div class="aleft" id="left-container"></div>
            <div class="aright">
                <fieldset class="layui-elem-field layui-field-title" style="margin: 20px 30px 20px 20px;">
                    <legend>评论审核</legend>
                </fieldset>
                <form class="layui-form bform" id="container"></form>
                <script>
                    layui.config({base:'${base}/${system}/js/'}).use('comment-check');
                </script>
                <script id="template" type="text/template">
                    <div class="layui-form-item">
                        <label class="layui-form-label">昵称</label>
                        <div class="layui-input-block">{{d.nickname}}</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">邮箱</label>
                        <div class="layui-input-block">{{d.email}}</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">内容</label>
                        <div class="layui-input-block">{{d.content}}</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">时间</label>
                        <div class="layui-input-block">{{d.cdate}}</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">回复内容</label>
                        <div class="layui-input-block">
                           <select name="status">
                                <option value="1" {{# if(d.status == 1) { }} selected {{# } }}>通过</option>
                                <option value="0" {{# if(d.status == 0) { }} selected {{# } }}>禁止</option>
                            </select>
                       </div>
                    </div>
                    <input type="hidden" name="id" value="{{d.id}}">
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                            <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
                        </div>
                    </div>
                </script>
            </div>
        </div>
    </body>
</html>